package com.xiaoshuidi.cloud.module.report.dal.mapper.bigdata;

import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.report.controller.bigdata.vo.ApartmentRevenueVO;
import com.xiaoshuidi.cloud.module.report.dal.DO.ApartmentDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * 大屏合房长租公寓经验指标分析 Mapper
 *
 * @author sxx
 */
@Mapper
public interface IndicatorAnalysisMapper extends BaseMapperX<ApartmentDO> {

    /**
     * 集中/分散门店营收
     *
     * @return
     */
    List<ApartmentRevenueVO> apartmentRevenueByType(@Param("concentrated") Integer concentrated);

    /**
     *  分散式/集中式 本月营收/年营收
     *
     * @return
     */
    BigDecimal  revenueByTypeAndTime(@Param("concentrated") Integer concentrated
            ,@Param("time") Date time);
}
